const foo = require("./modules/foo.mjs");

console.log(foo);
